package com.yycx.module.weixin.client.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.yycx.common.mybatis.annotation.TableAlias;
import com.yycx.common.mybatis.base.entity.AbstractAllEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @author flyme
 * @date 2022-03-01
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sys_wechat_template_log")
@TableAlias("tml")
@ApiModel(value = "SysTemplateMessageLog对象")
public class SysTemplateMessageLog extends AbstractAllEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "templatemsgLogId", type = IdType.ASSIGN_ID)
    private Long templatemsgLogId;

    @ApiModelProperty(value = "微信OpenId")
    private String openId;

    @ApiModelProperty(value = "微信模板Id")
    private String templateId;

    @ApiModelProperty(value = "微信Id")
    private Long weChatId;

    @ApiModelProperty(value = "跳转路径")
    private String url;

    @ApiModelProperty(value = "json存储内容")
    private String messageInfo;

    @ApiModelProperty(value = "错误信息")
    private String errorInfo;

    @ApiModelProperty(value = "1本地调用,2机票调用")
    private String sourceType;

    @ApiModelProperty(value = "0发送失败,1发送成功")
    private Integer sendState;

}
